'use strict';
exports.main = async (event, context) => {
	uniCloud.init()
	const db = uniCloud.database()
	let res = db.collection('userinfo').add({
	 
		username: event.username,
		openid: event.openid,
		mobile: event.mobile,
		nickname: event.nickname,
		avatar: event.avatar,
		gender: event.gender,
		status: event.status
		// inviter_mem_info_id: event.inviter_mem_info_id
	
		
	})
	
	//返回数据给客户端
	return res
};
